package com.timing;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;

/*
  定时器基类
 */
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class TimingTasks {

	protected ScheduledExecutorService threadPool ; // 定时任务线程池
	public TimingTasks() {
		threadPool = Executors.newScheduledThreadPool(1);
	}
	public TimingTasks(int count) {
		threadPool = Executors.newScheduledThreadPool(count);		
	}
}
